package com.jar.exercise.设计模式.单例.枚举;

/**
 * @author 松鼠
 * @className Singleton
 * @description TODO
 * @date 2019-11-08 13:51
 */
enum Singleton {
	INSTANCE;

	public void sayOk() {
		System.out.println("ok");
	}

}

public class Test {
	public static void main(String[] args) {
		Singleton instance = Singleton.INSTANCE;
		instance.sayOk();
	}
}
